widget-factory: Add a missing style class
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Aug 2014 13:16:09 +0000 (09:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Aug 2014 13:18:08 +0000 (09:18 -0400)
Unfortunately, constructing image-only buttons by just adding
the image as a child does not give us the image-button style
class. Add it manually.

demos/widget-factory/widget-factory.ui

index f25e967ec1cb7f4d09f571f473545fec7c361a9e..4c3b306d3b248495786fce1958323f5f741cf629 100644 (file)
@@ -1998,6 +1998,9 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
                                 <property name="visible">True</property>
                                 <property name="focus-on-click">False</property>
                                 <property name="relief">none</property>
+                                <style>
+                                  <class name="image-button"/>
+                                </style>
                                 <child>
                                   <object class="GtkImage" id="page2dismissi">
                                     <property name="visible">True</property>